package org.dromara.mall.domain.bo;

import org.dromara.mall.domain.TerMallCart;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 购物车业务对象 ter_mall_cart
 *
 * @author xch
 * @date 2025-06-27
 */
@Data
@AutoMapper(target = TerMallCart.class, reverseConvertGenerate = false)
public class TerMallCartBo   {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long productId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 是否选中(0=否,1=是)
     */
    private Long selected;

    private Long cartId;
}
